/* index.css: 页面布局与样式 */

/* 底部tab按钮容器 */
.tab-bar {
    display: flex;
    justify-content: space-around;
    width: 100%;
    max-width: 600px; /* 可根据需要限制最大宽度 */
}

/* tab按钮 */
.tab-item {
    font-family: 'KaiTi', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    flex: 1;
    border: none;
    margin: 0;
    padding: 12px 0;
    background: linear-gradient(135deg, var(--primary-color-start), var(--primary-color-end));
    color: white;
    font-size: 16px;
    cursor: pointer;
    border-radius: 0;
    transition: background-color 0.3s ease;
}

.tab-item:hover {
    filter: brightness(1.1);
}

.tab-item.active {
    background: linear-gradient(135deg, #004ba0, #002f6c);
}

/* 内容页切换控制 */
.scene {
    display: none;
}

.scene.active {
    display: block;
}

.create-post-btn {
    margin-top: 16px;
    padding: 10px 20px;
    font-size: 16px;
    background-color: var(--primary-color-start);
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: filter 0.3s ease;
}

.create-post-btn:hover {
    filter: brightness(1.1);
}

/* 帖子卡片样式 */
.posts-container {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-top: 16px;
}

.post-card:hover {
    transform: translateY(-2px);
}

.post-title {
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 8px;
}

.post-content {
    color: #555;
    margin-bottom: 12px;
}

.post-meta {
    display: flex;
    justify-content: space-between;
    color: #666;
    display: none;
}

